home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 4
/
CDPD_IV.bin
/
e
/
mailinglists
/
amigae.0993sept.archive
/
000055_crash!stack.urc.tue.nl!leon_Thu, 23 Sep 93 04:55:31 PST.msg
< prev
next >
Wrap
Internet Message Format
|
1994-05-26
|
2KB
Received: by bkhouse.cts.com (V1.16/Amiga)
id AA00000; Thu, 23 Sep 93 04:55:31 PST
Received: from mailhost.tue.nl by crash.cts.com with smtp
(Smail3.1.28.1 #18) id m0ofoqK-00007RC; Thu, 23 Sep 93 04:28 PDT
Received: from terra.stack.urc.tue.nl by mailhost.tue.nl with SMTP id AA18962
(5.65c/IDA-1.4.4 for <amigae@bkhouse.cts.com>); Thu, 23 Sep 1993 13:28:09 +0200
Received: from blade.stack.urc.tue.nl by terra.stack.urc.tue.nl (4.1/1.53)
id AA10362; Thu, 23 Sep 93 13:25:01 +0200
Received: by blade.stack.urc.tue.nl (4.1/1.53)
id AA03091; Thu, 23 Sep 93 13:25:24 +0200
Message-Id: <9309231125.AA03091@blade.stack.urc.tue.nl>
Date: Thu, 23 Sep 1993 13:25:19 +0200 (MET DST)
X-Mailer: ELM [version 2.4 PL20]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 1223
From: leon@stack.urc.tue.nl (Leon Woestenberg)
To: amigae@bkhouse.cts.com (AmigaE Mailing List)
Subject: Problem with {procname} and AddTask
Hello fellows!
I nEEd somE hEEElp hErE...
I'm having troubles converting a C source, that demonstrates the starting of
and communication between the maintask and a daughtertask (which is started
from the maintask). The C source is on aminet misc/amag/Amiga_9309b.lha and
called 'Multitask/task.c'.
The problem comes with 'AddTask', which needs a pointer to the daughtertask.
I now know that {procname} is the address of the procedure in AmigaE, but
I can't get the AmigaE version working (it crashes).
Does someone know how to add a PROCedure as a new task in AmigaE??
I cut out some source from the C source.
This is the daughtertask procedure:
-----
void __saveds __interrupt TochterTask(void) {
StopTochterTaskSig=AllocSignal(-1L);
Signal( MainTask, 1L<<TochterStartedSig );
while( (SetSignal(0L,0L) &
(1L<<StopTochterTaskSig)) == 0)
TochterCounter++;
FreeSignal( StopTochterTaskSig );
Signal( MainTask, 1L<<TochterStartedSig );
Wait(0);
}
-----
Line of the maintask, which starts the daughtertask:
-----
AddTask(Tochter,(APTR)TochterTask,0L);
-----
--
Signatures sold out at the time.... Leon Woestenberg (leon@stack.urc.tue.nl)
If lines are busy, try later. But DO call!
--